<!-- 编辑配置 CONFIG -->
<div data-id='config_template_id' style ="margin-top: 5px;"class='bc-list weui-table editor-label-content' data-port='http://api.hongyanche.com/mall_admin/config_template_list'
     id='editor-config-template-list'>
    <div class='weui-panel'>
        <div class='weui-panel__hd'>
            <div class='weui-flex-center' style="min-height: 35px;color:#666">
                <div class='weui-flex__item'>
                    <span class='editor-config-template-content'>配置模板
                        <!--<a class='pointer weui-cell_link bc-list-reload'>刷新<iclass='i i-refresh'></i></a>-->
                    </span>
                    <span class='editor-config-template-edit'style="display: none;">
						<a class='weui-btn weui-btn_mini weui-btn_default bc-list-selectAll'>全选</a>
						<a class='weui-btn weui-btn_mini weui-btn_default bc-list-selectReverse'>反选</a>
						<span class='weui-btn weui-btn_mini weui-btn_warn' id='editor-config-template-remove'>删除</span>
					</span>
                </div>


                <!--<b style="color:black;">请选择上方标签</b>：-->
                <!--<span id='editor-config-labels_text'>全部</span>
                &nbsp;-->
                <span id="add-template-btn" class='link editor-config-template'>＋ 新增模板</span>
                &nbsp;&nbsp;&nbsp;
                <!--<a href="javascript:void(0)" class="weui-cell_link">新增</a>&nbsp;&nbsp;&nbsp;-->
                <a class='weui-cell_link' id="editor-config-template-edit-btn">编辑</a>
                <a class='bc-list-edit hidden'></a>
            </div>
        </div>


        <!-- 新增模板 -->

        <div id="js-new-template" class="weui-flex__item" style="display: block;">
            <div class='bc-list-content' id='editor-config-template-list-content'>
            </div>
            <!-- </div> -->
            <div class='bc-list-template'>

                <div class='weui-cell' style="align-items: stretch; ">
                    <label class='editor-config-template-edit bc-list-checkbox' style='padding-top: 6px;'>
                        <input autocomplete='off' class='weui-check' type='checkbox'/>
                        <i class="weui-icon weui-icon-checked-circle"></i>
                    </label>
                    <div class='weui-cell__hd' style='width:80px;padding-top: 6px;'>
                        <div  class='editor-config-template-edit' style = "display: none">
                            <input autocomplete='off'  list=1 name='name' style='width:80px;margin-top: -3px' class='editor-config-template-name-input weui-btn weui-btn_mini weui-btn_default' placeholder="模板名称" /><br/>
                        </div>
                        <div class='editor-config-template-content js-template-item'>
                            <name list=1 style='margin-top: 5px' class='editor-config-template-content'>config</name>
                            <config_template_id list=1 class="hidden"></config_template_id>
                            <!-- <small mute> #<config_id list=1></config_id></small> -->
                        </div>
                    </div>
                    <div class='weui-cell__bd' style='flex:2;font-size: 14px;'>
                    </div>
                    <label class="weui-cell__ft editor-config-template-content" style='padding-top: 6px;'>
                        <input autocomplete='off' checked='checked' list=1 name='released' class="editor-config-template-release-switch weui-switch" type="checkbox">
                    </label>
                    <div class="editor-config-template-edit-range" style='padding-top: 8px;'>
                        <i class='i i-menu' style="margin:5px;cursor: move"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div>{include file='console:mall-editor-panel-config-template-option' /}</div>



<style>input:checked + category_text {
    color: green;
}</style>
<!-- 编辑标签 LABELS -->
<div class='bc-rank bc-btn-group' data-target='#editor-brand-list-labels-input,#editor-config-labels'
     data-port='http://api.hongyanche.com/mall_admin/labels' id='editor-label-rank'>
    <div class='weui-cells__title'>
        编辑标签 <a class='pointer bc-rank-reload'>刷新 <i class='i i-refresh'></i></a> <a class='pull-right pointer'
                                                                                     id="editor-label-edit-btn">编辑</a>
    </div>
    <div class='weui-panel'>
        <div class='weui-panel__hd bc-btn-group-btns' id='editor-label-rank-line'>
            <div class='bc-rank-loading'>
                <i class='weui-loading'></i> 正在加载标签....
            </div>
            <div class='weui-flex bc-rank-template'>
                <div>
                    <div class='editor-label-content product-label-box'>
                        <label class='bc-radio-uncheck'>
                            <label_id class='hidden' rank=1></label_id>
                            <div class='editor-label-content hidden'>
                                <label_text rank=1 class='editor-label-content'></label_text>
                                <br/>
                            </div>
                            <input autocomplete='off' class='weui-check category-label-id' name='label-edit'
                                   type='checkbox' value=''/>
                            <div class='editor-label-content'>
                                <category_text class='pointer' rank=1></category_text>
                            </div>
                        </label>
                    </div>
                    <div class='editor-label-edit weui-flex-center' style="width:90px;">
                        <i class='i i-menu editor-label-edit' style="margin-right: 5px;cursor: move"></i>
                        <input autocomplete='off' rank=1 name='category_text' style='width: 64px;'
                               class='weui-btn weui-btn_mini weui-btn_default editor-label-line' placeholder="标签行"/>
                    </div>
                </div>
                <div style='padding-top: 11px;'>:</div>
                <labels style='min-height: 42px;' rank=r class='bc-float product-label-box weui-flex__item'>
                    <label class='bc-radio-uncheck'>
                        <label_id range=1 class='hidden'></label_id>
                        <p class='editor-label-edit' align="right"><a class='editor-label-remove'><i
                                class='weui-icon weui-icon-cancel weui-icon-original'></i></a></p>
                        <input autocomplete='off' class='weui-check' name='__category_text__label-edit' type='checkbox'
                               value='__label_id__'/>
                        <div class='editor-label-content'>
                            <label_text range=1 class='editor-label-content'></label_text>
                            <br/>
                        </div>
                        <div class='editor-label-edit'>
                            <div class='weui-flex-center'>
                                <input autocomplete='off' range=1 class='weui-flex__item weui-input' placeholder="标签名"
                                       name='label_text'/>
                                <i style='cursor:move' class='i i-move'></i>
                            </div>
                        </div>
                    </label>
                </labels>
                <!-- <span style='min-height: 42px;' class='product-label-box editor-label-content'>
                    <label>
                        <input autocomplete='off' onchange="$(this).prop('checked',false)" class='weui-check' name='__category_text__label-edit' type='radio' value='' range=1 />
                        <div class='' style='width:30px;'>
                            不选
                        </div>
                    </label>
                </span> -->
                <div class='editor-label-edit' style="padding-top: 10px;display: none;"><a
                        class='editor-label-line-remove'>删除行</a></div>
            </div>
        </div>
        <div class='weui-panel__hd editor-label-edit'>
            <span class='link' id='editor-label-line-add'>+ 新增标签行</span>
        </div>
    </div>
</div>
<sss>
    $('#editor-label-rank').on('bc-rank-success',function(){
    $(this).find('.bc-rank-content .category-label-id').each(function(index,el){
    var e = $(el);
    e.val(e.siblings('label_id').html());
    e.attr('name',e.siblings('category_text').html()+"label-edit");
    $(el).siblings('.editor-label-content').find('label_text').html(e.siblings('category_text').html())
    });
    })
</sss>


